package com.zhy.http.okhttp.builder;

import com.zhy.http.okhttp.request.PostFileRequest;
import com.zhy.http.okhttp.request.RequestCall;
import java.io.File;
import java.util.LinkedHashMap;
import java.util.Map;
import okhttp3.MediaType;

public class PostFileBuilder extends OkHttpRequestBuilder
{
  private File file;
  private MediaType mediaType;

  public PostFileBuilder addHeader(String paramString1, String paramString2)
  {
    if (this.headers == null)
      this.headers = new LinkedHashMap();
    this.headers.put(paramString1, paramString2);
    return this;
  }

  public PostFileBuilder addParams(String paramString1, String paramString2)
  {
    if (this.params == null)
      this.params = new LinkedHashMap();
    this.params.put(paramString1, paramString2);
    return this;
  }

  public RequestCall build()
  {
    return new PostFileRequest(this.url, this.tag, this.params, this.headers, this.file, this.mediaType).build();
  }

  public OkHttpRequestBuilder file(File paramFile)
  {
    this.file = paramFile;
    return this;
  }

  public PostFileBuilder headers(Map<String, String> paramMap)
  {
    this.headers = paramMap;
    return this;
  }

  public OkHttpRequestBuilder mediaType(MediaType paramMediaType)
  {
    this.mediaType = paramMediaType;
    return this;
  }

  public PostFileBuilder params(Map<String, String> paramMap)
  {
    this.params = paramMap;
    return this;
  }

  public PostFileBuilder tag(Object paramObject)
  {
    this.tag = paramObject;
    return this;
  }

  public PostFileBuilder url(String paramString)
  {
    this.url = paramString;
    return this;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.zhy.http.okhttp.builder.PostFileBuilder
 * JD-Core Version:    0.6.2
 */